package com.morehair.bean.bo.admin;

import com.morehair.bean.pojo.AttributeOfGoods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.PrimitiveIterator;

/**
 * Description:
 * Date: 2021/6/6
 * Time: 18:49
 * author: zhang wei
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateGoodsBo {

    private List<AttributeBean> attributes;

    private List<ProductsBean> products;

    private List<SpecificationsBean> specifications;

    private GoodsBean goods;


    @Data
    public static class AttributeBean {
        private String attribute;
        private String value;
    }


    @Data
    public static class ProductsBean {
        private Integer id;

        private Integer number;

        private Integer price;

        private List<String> specifications;

        private String url;
    }

    @Data
    public static class SpecificationsBean {
        private String picUrl;
        private String specification;
        private String value;
    }

    @Data
    public static class GoodsBean {

        private String goodsSn;

        private String name;

        private Integer categoryId;

        private Integer brandId;

        private List<String> gallery;

        private String keywords;

        private String brief;

        private Boolean isOnSale;

        private String picUrl;

        private Boolean isNew;

        private Boolean isHot;

        private String unit;

        private BigDecimal counterPrice;

        private BigDecimal retailPrice;

        private String detail;

    }
}
